package com.learning.mybatis.mapper.resultmap.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.StringJoiner;

/**
 * ClassName: Address
 * Description:
 * Date: 2020/7/29 14:45 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Setter
@Getter
public class Address {
    private int id;
    private String name;

    @Override
    public String toString() {
        return new StringJoiner(", ", Address.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("name='" + name + "'")
                .toString();
    }
}
